package com.hhq.demo.bean;

import java.util.Date;

/**
 * @author HHQ
 * @date 2021年12月14日
 * 用户实体类，与数据库对应
 */
public class Admin {

    private Integer id;
    private String username;
    private String password;
    private String loginIp;
    private Date loginTime;
    private Date createTime;

    public Admin() {
    }

    public Admin(Integer id, String username, String password, String loginIp, Date loginTime, Date createTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.loginIp = loginIp;
        this.loginTime = loginTime;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
